package com.onlyyou.custom.mapper;

import com.onlyyou.custom.entity.Custom;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 小野
 * @Date: 2020/1/15 10:33
 */
@Repository
@Mapper
public interface CustomMapper {

    List<Custom> findAll(Integer pages,Integer rows);

    List<Custom> findByUserId(Long userId);

    List<Custom> findByOrderUserId(Long orderUserId);

    Custom findById(Long id);

    void save(Custom custom);

    void delete(Custom custom);

}
